home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Booting Gallery / Booting Gallery (source) / (Libraries) / Hubauer / FSUtilities / VolumeIterator.h < prev   
Encoding:
C/C++ Source or Header  |  1996-06-22  |  417 b   |  27 lines  |  [TEXT/BROW]

  1. #pragma once
  2.  
  3.  
  4. class VolumeIterator
  5. {
  6. public:
  7.     enum Match{ matchAll = 0,matchLocal = 1,matchRemote = 2};
  8.     
  9.     VolumeIterator(Match whichVolumes = matchAll);
  10.     
  11.     void    Reset();
  12.     Boolean    MoreQ();
  13.     
  14.     OSErr    GetNext(HParamBlockRec& outPB);
  15.     OSErr    GetNext(Str31 outName);
  16.     OSErr    GetNext(short& outVRefNum,Str31 outName = NULL);
  17.     
  18. protected:
  19.     void    Advance();
  20.     
  21.     HParamBlockRec        fPB; 
  22.     Str31                fVolName;
  23.     Match                fMatch;
  24.     
  25. };
  26.  
  27.